package com.rjxy.plansystemmanagement.service;

import com.rjxy.plansystemmanagement.entity.FlightInformation;
import com.rjxy.plansystemmanagement.mapper.FlightMapper;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public interface FlightServie {
    /**
     * 查询所有航班
     * @return
     */
    List<FlightInformation> list();

    /**
     * 根据id删除指定航班
     * @param id
     */
    void deleteFlight(Integer id);

    /**
     * 增加航班
     * @param flightInformation
     */
    void addFlight(FlightInformation flightInformation);

    FlightInformation getFlightById(Integer id);

    void updateFlight(FlightInformation flightInformation);

    List<FlightInformation> getFlightByCFCityAndDDCity(String cfCity, String ddCity);
}
